package com.dhecp.project.business.domain;

import java.util.Date;

import com.dhecp.core.domain.BaseBusinessEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 采购退票单 实体类
 * @author DH-lwl
 * @version 2020年1月1日
 */
public class StockInvoiceInReturn extends BaseBusinessEntity{

	private static final long serialVersionUID = 1L;
	
	private Double gPrice;	//采购单价
	private Double fPrice;	//实际进价
	private Double fSpSl;	//收票数量
	private Double fSpJe;	//收票金额
	private String bPID;	//客户BPID
	private String gProvider;//供应商编号
	private String gPName;	//供应商名称
    private String vPAddress;//供应商地址
    private String vPMan;	//供应商开票人
    private String vPFax;	//开票人传真
    private String vPTel;	//开票人电话
    private String vFpHm;	//发票号码
    private String vPzHm;	//凭证号码
    private String vFpXlh;	//发票序列号
    private String vKdDh;	//快递单号
    private String vFpLx;	//发票类型编码
    private String gIDSP;	//收票型号
	private String gNameSP;	//收票名称
	private String htGuid;	//销售合同GUID
	private String htBid;	//销售合同单号
	private String cgGuid;	//采购合同GUID
	private String cgBid;	//采购合同单号
	private String vKhHth;	//客户合同号
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dKpRq;		//开票日期
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dSpRq;		//收票日期
	@JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date dTpRq;		//退票日期
	private Double fXsFpsl;	//销售税率
	private Double fCgFpSl;	//采购税率
    private Double fSumje;	//退票金额
    private Double fWsDj;	//未税单价
    private Double fWsJe;	//未税金额
    private Double fSe;		//税额
    private Boolean bbABCG;	//是否AB采购
    private Boolean bbsp;	//收票申请标志
    //虚拟字段
    private String vFpLxName;//发票类型
    
	public Double getgPrice() {
		if (gPrice == null) {
			return 0.0;
		}
		return gPrice;
	}
	public void setgPrice(Double gPrice) {
		this.gPrice = gPrice;
	}
	public Double getfPrice() {
		if (fPrice == null) {
			return 0.0;
		}
		return fPrice;
	}
	public void setfPrice(Double fPrice) {
		this.fPrice = fPrice;
	}
	public Double getfSpSl() {
		if (fSpSl == null) {
			return 0.0;
		}
		return fSpSl;
	}
	public void setfSpSl(Double fSpSl) {
		this.fSpSl = fSpSl;
	}
	public Double getfSpJe() {
		if (fSpJe == null) {
			return 0.0;
		}
		return fSpJe;
	}
	public void setfSpJe(Double fSpJe) {
		this.fSpJe = fSpJe;
	}
	public String getbPID() {
		return bPID;
	}
	public void setbPID(String bPID) {
		this.bPID = bPID;
	}
	public String getgProvider() {
		return gProvider;
	}
	public void setgProvider(String gProvider) {
		this.gProvider = gProvider;
	}
	public String getgPName() {
		return gPName;
	}
	public void setgPName(String gPName) {
		this.gPName = gPName;
	}
	public String getvPAddress() {
		return vPAddress;
	}
	public void setvPAddress(String vPAddress) {
		this.vPAddress = vPAddress;
	}
	public String getvPMan() {
		return vPMan;
	}
	public void setvPMan(String vPMan) {
		this.vPMan = vPMan;
	}
	public String getvPFax() {
		return vPFax;
	}
	public void setvPFax(String vPFax) {
		this.vPFax = vPFax;
	}
	public String getvPTel() {
		return vPTel;
	}
	public void setvPTel(String vPTel) {
		this.vPTel = vPTel;
	}
	public String getvFpHm() {
		return vFpHm;
	}
	public void setvFpHm(String vFpHm) {
		this.vFpHm = vFpHm;
	}
	public String getvPzHm() {
		return vPzHm;
	}
	public void setvPzHm(String vPzHm) {
		this.vPzHm = vPzHm;
	}
	public String getvFpXlh() {
		return vFpXlh;
	}
	public void setvFpXlh(String vFpXlh) {
		this.vFpXlh = vFpXlh;
	}
	public String getvKdDh() {
		return vKdDh;
	}
	public void setvKdDh(String vKdDh) {
		this.vKdDh = vKdDh;
	}
	public String getvFpLx() {
		return vFpLx;
	}
	public void setvFpLx(String vFpLx) {
		this.vFpLx = vFpLx;
	}
	public String getgIDSP() {
		return gIDSP;
	}
	public void setgIDSP(String gIDSP) {
		this.gIDSP = gIDSP;
	}
	public String getgNameSP() {
		return gNameSP;
	}
	public void setgNameSP(String gNameSP) {
		this.gNameSP = gNameSP;
	}
	public String getHtGuid() {
		return htGuid;
	}
	public void setHtGuid(String htGuid) {
		this.htGuid = htGuid;
	}
	public String getHtBid() {
		return htBid;
	}
	public void setHtBid(String htBid) {
		this.htBid = htBid;
	}
	public String getCgGuid() {
		return cgGuid;
	}
	public void setCgGuid(String cgGuid) {
		this.cgGuid = cgGuid;
	}
	public String getCgBid() {
		return cgBid;
	}
	public void setCgBid(String cgBid) {
		this.cgBid = cgBid;
	}
	public String getvKhHth() {
		return vKhHth;
	}
	public void setvKhHth(String vKhHth) {
		this.vKhHth = vKhHth;
	}
	public Date getdKpRq() {
		return dKpRq;
	}
	public void setdKpRq(Date dKpRq) {
		this.dKpRq = dKpRq;
	}
	public Date getdSpRq() {
		return dSpRq;
	}
	public void setdSpRq(Date dSpRq) {
		this.dSpRq = dSpRq;
	}
	public Date getdTpRq() {
		return dTpRq;
	}
	public void setdTpRq(Date dTpRq) {
		this.dTpRq = dTpRq;
	}
	public Double getfXsFpsl() {
		if (fXsFpsl == null) {
			return 0.0;
		}
		return fXsFpsl;
	}
	public void setfXsFpsl(Double fXsFpsl) {
		this.fXsFpsl = fXsFpsl;
	}
	public Double getfCgFpSl() {
		if (fCgFpSl == null) {
			return 0.0;
		}
		return fCgFpSl;
	}
	public void setfCgFpSl(Double fCgFpSl) {
		this.fCgFpSl = fCgFpSl;
	}
	public Double getfSumje() {
		if (fSumje == null) {
			return 0.0;
		}
		return fSumje;
	}
	public void setfSumje(Double fSumje) {
		this.fSumje = fSumje;
	}
	public Double getfWsDj() {
		if (fWsDj == null) {
			return 0.0;
		}
		return fWsDj;
	}
	public void setfWsDj(Double fWsDj) {
		this.fWsDj = fWsDj;
	}
	public Double getfWsJe() {
		if (fWsJe == null) {
			return 0.0;
		}
		return fWsJe;
	}
	public void setfWsJe(Double fWsJe) {
		this.fWsJe = fWsJe;
	}
	public Double getfSe() {
		if (fSe == null) {
			return 0.0;
		}
		return fSe;
	}
	public void setfSe(Double fSe) {
		this.fSe = fSe;
	}
	public Boolean getBbABCG() {
		return bbABCG;
	}
	public void setBbABCG(Boolean bbABCG) {
		this.bbABCG = bbABCG;
	}
	public Boolean getBbsp() {
		if (bbsp == null) {
			return false;
		}
		return bbsp;
	}
	public void setBbsp(Boolean bbsp) {
		this.bbsp = bbsp;
	}
	public String getvFpLxName() {
		return vFpLxName;
	}
	public void setvFpLxName(String vFpLxName) {
		this.vFpLxName = vFpLxName;
	}
}
